package com.tangyuan.live.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tangyuan.common.result.Result;
import com.tangyuan.live.entity.vo.LiveRoomVo;
import com.tangyuan.model.live.LiveViewRecord;

import java.util.List;

public interface LiveViewRecordService extends IService<LiveViewRecord> {

    Long getMaxViewNumber(Long roomId);

    Result<Long> getOnLineNumber(Long roomId);

    Result<LiveRoomVo> inOrOutLive(String token, Long roomId);

    List<LiveViewRecord> getViewRecordByRoomId(Long roomId, List<Long> userIds);
}
